<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="true">
<head>  
  <title>其他费用/编辑</title>
  <%@ include file="../link_script.jsp" %>
  <script type="text/javascript">
    $(function() { 
      $("form").validity(function() {
        $("#oeExpenses").require();
      });
    });
  </script>
</head>
<body> 
<form action="otherExpense.do?method=editOtherExpense_Do&pageNum=${pageNum}" method="post" target="_self">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@include file="../operate_button_add.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#b5d6e6">       
          <tr>
            <td width="100%" class="STYLE32">编辑其他费用</td>
          </tr>
          <tr>
            <td class="STYLE1"><table width="100%" border="0" bordercolor="#b5d6e6" cellpadding="0" cellspacing="0">
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;旅游计划 : </td>
                <td class="STYLE11">
                <select id="tpID" name="tpID" onchange="javascript:change();">
                  <option value="${otherExpense.tpID}">${tpName}</option>
                  <option disabled="disabled">------</option>
                  <c:if test="${!empty tourismPlanList}">
                    <c:forEach items="${tourismPlanList}" var="tp">
                      <option value="${tp.tpID}">${tp.tpName}</option>
                  </c:forEach></c:if></select></td>
              </tr>
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;消费日期 : </td>
                <td class="STYLE11"><input type="text" id="oeDate" name="oeDate" value="${otherExpense.oeDate}" size="10" />
               &nbsp;&nbsp;<font color="red">*</font>&nbsp;&nbsp; 消费日期在结算时作为流水账的记账日期</td>
              </tr>
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;消费类型 : </td>
                <td class="STYLE11">
                <select id="oeType" name="oeType">
                  <option value="${otherExpense.oeType}">${otherExpense.oeType}</option>
                  <option disabled="disabled">------</option>
                  <option value="用餐">用餐</option>
                  <option value="服装">服装</option>
                  <option value="礼品">礼品</option>  
                  <option value="打的">打的</option>
                  <option value="门票">门票</option>                     
                </select>
                </td>
              </tr>
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;所在城市 : </td>
                <td class="STYLE11"><input type="text" id="oeCity" name="oeCity" value="${otherExpense.oeCity}" size="10" />
                <br/></td>
              </tr>
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;费用: </td>
                <c:if test="${otherExpense.oePay=='1'}">
                  <td class="STYLE11"><input type="text" id="oeExpenses" name="oeExpenses" value="${otherExpense.oeExpenses}" size="10" title="费用不能为空" />&nbsp;￥</td>
                </c:if>
                <c:if test="${otherExpense.oePay=='0'}">
                  <td class="STYLE11"><input type="text" id="oeExpenses" name="oeExpenses" value="${otherExpense.oeExpenses}" size="10" title="费用不能为空" readonly />&nbsp;￥</td>
                </c:if>
              </tr>            
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;描述 : </td>
                <td class="STYLE11"><input type="text" id="oeDesc" name="oeDesc" value="${otherExpense.oeDesc}" size="50" /></td>
              </tr>
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;</td>
                <td class="STYLE11"><input type=hidden id="oeID" name="oeID" value="${otherExpense.oeID}" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td class="STYLE12"><input type="submit" value="提交"/><input type="reset" value="取消"/></td>
          </tr>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@include file="../no_page.jsp" %>
</table>
</form>
</body>
</html>
